package _01lambda引入和格式;

import java.util.ArrayList;
import java.util.Collections;

public class DemoLambda {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        Collections.addAll(arrayList,22,11,44,33,55);

        Collections.sort(arrayList,(Integer o1,Integer o2) -> {
            return o2 - o1;
        });
        System.out.println(arrayList);
    }
}
